import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                typeCode: 'string',
                typeName: 'string',
                creditCode: 'string? | null',
                orderReasonCode: 'string? | null',
                orderReason: 'string? | null',
                options: ['string']
            })
        ]
    })
});

export const List = itf({
    payload: itf({
        content: [itf({
            partId: 'string',
            partCode: 'string',
            partName: 'string',
        })],
        totalElements: 'number'
    })
});
export const Part = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
                unit: 'string? | null',
                minPackSize: 'number? | null',
                isOrderable: 'boolean? | null',
                wholeSalePrice: 'number? | null',
                retailGuidePrice: 'number? | null',
            })
        ],
        totalElements: 'number'
    })
});
